import request from "@/utils/request";




export function add(data) {
  return request({
    url: "/sinohis/pension/fee/itemmanager/createItemCategory",
    method: 'post',
    data

  });

}
export function search(params) {
  return request({
    url: "/sinohis/pension/fee/itemmanager/searchItemCategory",
    method: 'get',
    params

  });

}
export function searchchild(params) {
  return request({
    url: "/sinohis/pension/fee/itemmanager/searchItemInfosOfConditions",
    method: 'get',
    params

  });

}
export function repchild(data) {
  return request({
    url: "/sinohis/pension/fee/itemmanager/modifyItemInfo",
    method: 'put',
    data

  });

}
export function replei(data) {
  return request({
    url: "/sinohis/pension/fee/itemmanager/modifyItemCategoryInfo",
    method: 'put',
    data

  });

}
export function editsave(data) {
  return request({
    url: "/sinohis/pension/fee/itemmanager/modifyItemCategoryInfo",
    method: 'put',
    data

  });

}
export function createchild(data) {
  return request({
    url: "/sinohis/pension/fee/itemmanager/createItem",
    method: 'post',
    data

  });

}
//根据助记码或名称查询所有子项(套餐)
export function searchAllItemInfos(data) {
  return request({
    url: "/sinohis/pension/fee/itemmanager/searchAllItemInfos",
    method: 'post',
    data

  });

}
